<me:UWBERROR x:Class="WPFExcelReport.TWBER"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    FontSize="16"
                    x:Name="TV"
                    Loaded="Window_Loaded" 
     >
    <me:UWBERROR.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>   
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter x:Key="pnum"/>
        <ucd:M2YD x:Key="m2yd"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UWBERROR.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition> 
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <DataGrid CanUserReorderColumns="False" 
             Grid.Row="1" 
             CanUserResizeRows="True" 
             CanUserSortColumns="True" 
             AutoGenerateColumns="False" 
             EnableRowVirtualization="True" 
             HorizontalAlignment="Stretch" 
             VerticalAlignment="Stretch"
             IsSynchronizedWithCurrentItem="True"  
             IsReadOnly="True"
             ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
             Name="dlgMaster"
             Margin="0,1,0,0" >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=MDATE}" Header="{Binding Source={Localization:TranslateExtension Word=日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=LO}" Header="{Binding Source={Localization:TranslateExtension Word=LO}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=LB}" Header="{Binding Source={Localization:TranslateExtension Word=LB}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=STKNR}" Header="{Binding Source={Localization:TranslateExtension Word=卷号}}"  Width="Auto" />
                
                    <DataGridTextColumn Binding="{Binding Path=ER001}" Header="{Binding Source={Localization:TranslateExtension Word=缺经}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER002}" Header="{Binding Source={Localization:TranslateExtension Word=缺纬}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER003}" Header="{Binding Source={Localization:TranslateExtension Word=错纬}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER004}" Header="{Binding Source={Localization:TranslateExtension Word=错经}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER005}" Header="{Binding Source={Localization:TranslateExtension Word=龙头坏布}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER006}" Header="{Binding Source={Localization:TranslateExtension Word=经跳花}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER007}" Header="{Binding Source={Localization:TranslateExtension Word=小跳花}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER008}" Header="{Binding Source={Localization:TranslateExtension Word=边刺毛}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER009}" Header="{Binding Source={Localization:TranslateExtension Word=带头纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER010}" Header="{Binding Source={Localization:TranslateExtension Word=小弓纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER011}" Header="{Binding Source={Localization:TranslateExtension Word=经弓纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER012}" Header="{Binding Source={Localization:TranslateExtension Word=经双纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER013}" Header="{Binding Source={Localization:TranslateExtension Word=吊纬}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER014}" Header="{Binding Source={Localization:TranslateExtension Word=双纬}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER015}" Header="{Binding Source={Localization:TranslateExtension Word=蛛网}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER016}" Header="{Binding Source={Localization:TranslateExtension Word=坏布}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER017}" Header="{Binding Source={Localization:TranslateExtension Word=织稀}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER018}" Header="{Binding Source={Localization:TranslateExtension Word=油污}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER019}" Header="{Binding Source={Localization:TranslateExtension Word=蜡油档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER020}" Header="{Binding Source={Localization:TranslateExtension Word=错纬档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER021}" Header="{Binding Source={Localization:TranslateExtension Word=龙头坏布档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER022}" Header="{Binding Source={Localization:TranslateExtension Word=坏布档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER023}" Header="{Binding Source={Localization:TranslateExtension Word=吊经档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER024}" Header="{Binding Source={Localization:TranslateExtension Word=稀密档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER025}" Header="{Binding Source={Localization:TranslateExtension Word=错筘}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER026}" Header="{Binding Source={Localization:TranslateExtension Word=粗股纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER027}" Header="{Binding Source={Localization:TranslateExtension Word=细股纱}}"  Width="Auto" />

                    <DataGridTextColumn Binding="{Binding Path=ER028}" Header="{Binding Source={Localization:TranslateExtension Word=松拈纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER029}" Header="{Binding Source={Localization:TranslateExtension Word=色纱档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER030}" Header="{Binding Source={Localization:TranslateExtension Word=粗纱档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER031}" Header="{Binding Source={Localization:TranslateExtension Word=坏边}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER032}" Header="{Binding Source={Localization:TranslateExtension Word=洞}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER033}" Header="{Binding Source={Localization:TranslateExtension Word=色纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER034}" Header="{Binding Source={Localization:TranslateExtension Word=小辫纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER035}" Header="{Binding Source={Localization:TranslateExtension Word=毛边}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER036}" Header="{Binding Source={Localization:TranslateExtension Word=缺纬档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER037}" Header="{Binding Source={Localization:TranslateExtension Word=弓经档}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER038}" Header="{Binding Source={Localization:TranslateExtension Word=多股纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER039}" Header="{Binding Source={Localization:TranslateExtension Word=少股纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER040}" Header="{Binding Source={Localization:TranslateExtension Word=紧拈纱}}"  Width="Auto" />
                    <DataGridTextColumn Binding="{Binding Path=ER041}" Header="{Binding Source={Localization:TranslateExtension Word=边撑痕}}"  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:UWBERROR>
